Skip to main content

beepPitch

Type

property

Summary

Sets the frequency of the sound played by the beep command.

Syntax

set the beepPitch to <pitchFrequency>

Description

Use the beepPitch property to make the beep sound higher or lower.

The pitchFrequency is the frequency in Hz (cycles per second). A value of 440 is A above middle C. Halving the frequency lowers the pitch one octave; doubling the frequency raises it one octave.

Set the beepPitch to -1 to use the default system setting.

The beepPitch has no effect and does not report a meaningful value on Mac OS or Windows systems, and on some Unix systems which don't allow changing the beep pitch.

Examples

set the beepPitch to 220 -- A below middle C
set the beepPitch to -1 -- restores default

keyword: default, integer

command: beep

glossary: property, Windows, Unix, command, Mac OS

Compatibility and Support

Introduced

LiveCode 1.0

OS

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?